/* 
SETTINGS
If you need the loader go faster or slower, this is the place to change. Don't forget to update 'time' in the javascript
*/
@time: 5s;


.loader-container {
  height: 6px;
  width: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -3px;
  margin-left: -300px;
  background-color: transparent;
  
background-image: -webkit-linear-gradient(left, rgb(91, 216, 255), rgb(255, 0, 0));
	background-image: -moz-linear-gradient(left, rgb(91, 216, 255), rgb(255, 0, 0));
	background-image: -o-linear-gradient(left, rgb(91, 216, 255), rgb(255, 0, 0));
	background-image: -ms-linear-gradient(left, rgb(91, 216, 255), rgb(255, 0, 0));
	background-image: linear-gradient(left, rgb(91, 216, 255), rgb(255, 0, 0));
  box-shadow: inset 0 -2px 2px rgba(0,0,0,.4);
  border-radius: 3px 0 0 3px;
  &:after {
    content: "";
    display: block; 
    position: absolute;
    right: 0;
    top: 50%;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin-top: -0.5em;
    margin-right: -1em;
    background-image: -webkit-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -moz-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -o-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -ms-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
  }
  &.done:after {
    background: Red;
  }
}

.run .runner {
  content: "";
  position: absolute;
  right: 0;
  height: 100%;
  width: 0%;
  background-color: transparent;
  background-image: -webkit-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -moz-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -o-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: -ms-linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
	background-image: linear-gradient(top, rgb(0, 0, 0), rgb(33, 33, 33));
  animation: loader @time linear;
}
.meter {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 2em;
  margin-top: .3em;
  color: #ff0000;
  animation: meter @time linear;
  text-shadow: 0 -1px 0 #333;
  &:after {
  	content: "%";
  }
}

@keyframes loader {
    0% { width:100% }
    100% { width: 0%; }
}

@keyframes meter {
  0% { color: rgb(91, 216, 255);}
  100% { color: #ff0000; }
}

/* Decoration */
@import url("http://fonts.googleapis.com/css?family=Give+You+Glory|Exo:800");

html, body {
	height: 100%;
  padding: 0;
  margin: 0;
}
body {
  font-family: 'Exo', sans-serif;
  background: transparent url('') repeat;
}
footer {
  font-family: 'Give You Glory', cursive;
  position: absolute;
  bottom: 2em;
  right: 1em;
  color: #777;
  font-size: 1.2em;
  a {
  	text-decoration: none;
	  color: #777;
    border: none;
  }
}
#wrapper {
	width: 600px;
  margin: 0 auto;
}